import request from '@/utils/request'

export function findAllReviews(reviewproduct) {
  return request({
    url: '/product/productReview/findAllReviews',
    method: 'post',
    data: reviewproduct
  })
}

export function deleteReviewsById(id) {
    return request({
      url: '/product/productReview/deleteReviewsById',
      method: 'get',
      params: { id }
    })
}

export function saveReviews(editproduct) {
    return request({
      url: '/product/productReview/saveReviews',
      method: 'post',
      data: editproduct
    })
}

export function updateReviews(editproduct) {
    return request({
      url: '/product/productReview/updateReviews',
      method: 'post',
      data: editproduct
    })
}
